package cn.ljq.service;

import cn.ljq.dao.ClzMapper;
import cn.ljq.entity.Clz;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ClzServiceImpl implements ClzService{

    @Autowired
    ClzMapper clzMapper;

    @Override
    public List<Clz> findAll() {
        return clzMapper.findAll();
    }

    @Override
    public Clz findOne(String clzno) {
        return clzMapper.findOne(clzno);
    }

    @Override
    public int add(Clz clz) {
        return clzMapper.add(clz);
    }

    @Override
    public int update(Clz clz) {
        return clzMapper.update(clz);
    }

    @Override
    public int del(String clzno) {
        return clzMapper.del(clzno);
    }

    @Override
    public List<Clz> findPage(int n1, int n2) {
        return clzMapper.findPage(n1,n2);
    }

    @Override
    public int getTotal() {
        return clzMapper.getTotal();
    }
}
